<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: QwtClipper Namespace Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('namespace_qwt_clipper.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">QwtClipper Namespace Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Some clipping algorithms.  
<a href="namespace_qwt_clipper.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a4bbafdea07dca5589537e6db1c7c0b6e"><td class="memItemLeft" align="right" valign="top">QWT_EXPORT void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_qwt_clipper.html#a4bbafdea07dca5589537e6db1c7c0b6e">clipPolygon</a> (const QRect &amp;, QPolygon &amp;, bool closePolygon=false)</td></tr>
<tr class="separator:a4bbafdea07dca5589537e6db1c7c0b6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98a7c4009d2f8ac325b35255c85b0b34"><td class="memItemLeft" align="right" valign="top">QWT_EXPORT void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_qwt_clipper.html#a98a7c4009d2f8ac325b35255c85b0b34">clipPolygon</a> (const QRectF &amp;, QPolygon &amp;, bool closePolygon=false)</td></tr>
<tr class="separator:a98a7c4009d2f8ac325b35255c85b0b34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5305d415fd97b332825e68b6cb25715"><td class="memItemLeft" align="right" valign="top">QWT_EXPORT void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_qwt_clipper.html#aa5305d415fd97b332825e68b6cb25715">clipPolygonF</a> (const QRectF &amp;, QPolygonF &amp;, bool closePolygon=false)</td></tr>
<tr class="separator:aa5305d415fd97b332825e68b6cb25715"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf6fbe8c4d00b9608ac08278c4891cb8"><td class="memItemLeft" align="right" valign="top">QWT_EXPORT QPolygon&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_qwt_clipper.html#abf6fbe8c4d00b9608ac08278c4891cb8">clippedPolygon</a> (const QRect &amp;, const QPolygon &amp;, bool closePolygon=false)</td></tr>
<tr class="separator:abf6fbe8c4d00b9608ac08278c4891cb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2891a88d006edea48ac0275da4d6de33"><td class="memItemLeft" align="right" valign="top">QWT_EXPORT QPolygon&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_qwt_clipper.html#a2891a88d006edea48ac0275da4d6de33">clippedPolygon</a> (const QRectF &amp;, const QPolygon &amp;, bool closePolygon=false)</td></tr>
<tr class="separator:a2891a88d006edea48ac0275da4d6de33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c876c77f33931add58f80a98885af07"><td class="memItemLeft" align="right" valign="top">QWT_EXPORT QPolygonF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_qwt_clipper.html#a7c876c77f33931add58f80a98885af07">clippedPolygonF</a> (const QRectF &amp;, const QPolygonF &amp;, bool closePolygon=false)</td></tr>
<tr class="separator:a7c876c77f33931add58f80a98885af07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab36605186b4a1c411fccb3b68cf1724a"><td class="memItemLeft" align="right" valign="top">QWT_EXPORT <a class="el" href="class_q_vector.html">QVector</a>&lt; <a class="el" href="class_qwt_interval.html">QwtInterval</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_qwt_clipper.html#ab36605186b4a1c411fccb3b68cf1724a">clipCircle</a> (const QRectF &amp;, const QPointF &amp;, double radius)</td></tr>
<tr class="separator:ab36605186b4a1c411fccb3b68cf1724a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Some clipping algorithms. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="ab36605186b4a1c411fccb3b68cf1724a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab36605186b4a1c411fccb3b68cf1724a">&#9670;&nbsp;</a></span>clipCircle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_q_vector.html">QVector</a>&lt; <a class="el" href="class_qwt_interval.html">QwtInterval</a> &gt; QwtClipper::clipCircle </td>
          <td>(</td>
          <td class="paramtype">const QRectF &amp;&#160;</td>
          <td class="paramname"><em>clipRect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QPointF &amp;&#160;</td>
          <td class="paramname"><em>center</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>radius</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Circle clipping</p>
<p><a class="el" href="namespace_qwt_clipper.html#ab36605186b4a1c411fccb3b68cf1724a">clipCircle()</a> divides a circle into intervals of angles representing arcs of the circle. When the circle is completely inside the clip rectangle an interval [0.0, 2 * M_PI] is returned.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">clipRect</td><td>Clip rectangle </td></tr>
    <tr><td class="paramname">center</td><td>Center of the circle </td></tr>
    <tr><td class="paramname">radius</td><td>Radius of the circle</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Arcs of the circle </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__clipper_8cpp_source.html#l00477">477</a> of file <a class="el" href="qwt__clipper_8cpp_source.html">qwt_clipper.cpp</a>.</p>

</div>
</div>
<a id="abf6fbe8c4d00b9608ac08278c4891cb8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf6fbe8c4d00b9608ac08278c4891cb8">&#9670;&nbsp;</a></span>clippedPolygon() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QPolygon QwtClipper::clippedPolygon </td>
          <td>(</td>
          <td class="paramtype">const QRect &amp;&#160;</td>
          <td class="paramname"><em>clipRect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QPolygon &amp;&#160;</td>
          <td class="paramname"><em>polygon</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>closePolygon</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sutherland-Hodgman polygon clipping</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">clipRect</td><td>Clip rectangle </td></tr>
    <tr><td class="paramname">polygon</td><td>Polygon </td></tr>
    <tr><td class="paramname">closePolygon</td><td>True, when the polygon is closed</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Clipped polygon </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__clipper_8cpp_source.html#l00437">437</a> of file <a class="el" href="qwt__clipper_8cpp_source.html">qwt_clipper.cpp</a>.</p>

</div>
</div>
<a id="a2891a88d006edea48ac0275da4d6de33"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2891a88d006edea48ac0275da4d6de33">&#9670;&nbsp;</a></span>clippedPolygon() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QPolygon QwtClipper::clippedPolygon </td>
          <td>(</td>
          <td class="paramtype">const QRectF &amp;&#160;</td>
          <td class="paramname"><em>clipRect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QPolygon &amp;&#160;</td>
          <td class="paramname"><em>polygon</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>closePolygon</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sutherland-Hodgman polygon clipping</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">clipRect</td><td>Clip rectangle </td></tr>
    <tr><td class="paramname">polygon</td><td>Polygon </td></tr>
    <tr><td class="paramname">closePolygon</td><td>True, when the polygon is closed</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Clipped polygon </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__clipper_8cpp_source.html#l00420">420</a> of file <a class="el" href="qwt__clipper_8cpp_source.html">qwt_clipper.cpp</a>.</p>

</div>
</div>
<a id="a7c876c77f33931add58f80a98885af07"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c876c77f33931add58f80a98885af07">&#9670;&nbsp;</a></span>clippedPolygonF()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QPolygonF QwtClipper::clippedPolygonF </td>
          <td>(</td>
          <td class="paramtype">const QRectF &amp;&#160;</td>
          <td class="paramname"><em>clipRect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QPolygonF &amp;&#160;</td>
          <td class="paramname"><em>polygon</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>closePolygon</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sutherland-Hodgman polygon clipping</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">clipRect</td><td>Clip rectangle </td></tr>
    <tr><td class="paramname">polygon</td><td>Polygon </td></tr>
    <tr><td class="paramname">closePolygon</td><td>True, when the polygon is closed</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Clipped polygon </dd></dl>

<p class="definition">Definition at line <a class="el" href="qwt__clipper_8cpp_source.html#l00455">455</a> of file <a class="el" href="qwt__clipper_8cpp_source.html">qwt_clipper.cpp</a>.</p>

</div>
</div>
<a id="a4bbafdea07dca5589537e6db1c7c0b6e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4bbafdea07dca5589537e6db1c7c0b6e">&#9670;&nbsp;</a></span>clipPolygon() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtClipper::clipPolygon </td>
          <td>(</td>
          <td class="paramtype">const QRect &amp;&#160;</td>
          <td class="paramname"><em>clipRect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QPolygon &amp;&#160;</td>
          <td class="paramname"><em>polygon</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>closePolygon</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sutherland-Hodgman polygon clipping</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">clipRect</td><td>Clip rectangle </td></tr>
    <tr><td class="paramname">polygon</td><td>Polygon IN/OUT </td></tr>
    <tr><td class="paramname">closePolygon</td><td>True, when the polygon is closed </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="qwt__clipper_8cpp_source.html#l00390">390</a> of file <a class="el" href="qwt__clipper_8cpp_source.html">qwt_clipper.cpp</a>.</p>

</div>
</div>
<a id="a98a7c4009d2f8ac325b35255c85b0b34"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a98a7c4009d2f8ac325b35255c85b0b34">&#9670;&nbsp;</a></span>clipPolygon() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtClipper::clipPolygon </td>
          <td>(</td>
          <td class="paramtype">const QRectF &amp;&#160;</td>
          <td class="paramname"><em>clipRect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QPolygon &amp;&#160;</td>
          <td class="paramname"><em>polygon</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>closePolygon</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sutherland-Hodgman polygon clipping</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">clipRect</td><td>Clip rectangle </td></tr>
    <tr><td class="paramname">polygon</td><td>Polygon IN/OUT </td></tr>
    <tr><td class="paramname">closePolygon</td><td>True, when the polygon is closed </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="qwt__clipper_8cpp_source.html#l00369">369</a> of file <a class="el" href="qwt__clipper_8cpp_source.html">qwt_clipper.cpp</a>.</p>

</div>
</div>
<a id="aa5305d415fd97b332825e68b6cb25715"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5305d415fd97b332825e68b6cb25715">&#9670;&nbsp;</a></span>clipPolygonF()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtClipper::clipPolygonF </td>
          <td>(</td>
          <td class="paramtype">const QRectF &amp;&#160;</td>
          <td class="paramname"><em>clipRect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QPolygonF &amp;&#160;</td>
          <td class="paramname"><em>polygon</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>closePolygon</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sutherland-Hodgman polygon clipping</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">clipRect</td><td>Clip rectangle </td></tr>
    <tr><td class="paramname">polygon</td><td>Polygon IN/OUT </td></tr>
    <tr><td class="paramname">closePolygon</td><td>True, when the polygon is closed </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="qwt__clipper_8cpp_source.html#l00404">404</a> of file <a class="el" href="qwt__clipper_8cpp_source.html">qwt_clipper.cpp</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_qwt_clipper.html">QwtClipper</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
